﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for TinTucContronller
/// </summary>
public class TinTucContronller
{
	public TinTucContronller()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    TinTucDAL DAL = new TinTucDAL();
    public DataTable fnC_GetAllDataTinTuc()
    {
        return DAL.fnG_GetAllDataTinTuc();
    }

    public DataTable fnC_GetTinTucNew()
    {
        return DAL.fnG_GetTinTucNew();
    }

    public TinTucKhuyenMaiEntity fnG_GetTinTuc(string MaTinTuc)
    {
        return DAL.fnG_GetTinTuc(MaTinTuc);
    }
    public DataTable fnC_Get4Tintuc()
    {
        return DAL.fnG_Get4TinTuc();
    }
    // tin tuc khac
    public DataTable fnC_GetTinTuc10Diff(TinTucKhuyenMaiEntity TinTuc)
    {
        return DAL.fnG_GetData10TintucDiff(TinTuc);
    }
    //insert tintuc
    public int fnC_InsertTinTuc(TinTucKhuyenMaiEntity TinTuc)
    {
        return DAL.fnG_InsertTinTucKhuyenMai(TinTuc);
    }
    //update
    public int fnC_UpdateTinTuc(TinTucKhuyenMaiEntity TinTuc)
    {
        return DAL.fnG_UpdateTinTucKhuyenMai(TinTuc);
    }
    //delete
    public int fnC_DeleteTinTuc(TinTucKhuyenMaiEntity TinTuc)
    {
        return DAL.fnG_DeleteTinTuc(TinTuc);
    }
    //active
    public int fnC_ActiveTinTuc(TinTucKhuyenMaiEntity TinTuc)
    {
        return DAL.fnG_ActiveTinTucKhuyenMai(TinTuc);
    }
    public DataTable fnC_GetDataForDate(DateTime tungay, DateTime denngay)
    {
        return DAL.fnG_GetDataForDate(tungay, denngay);
    }
    public DataTable fnC_TimKiemTintuc(string timkiem)
    {
        return DAL.fnG_TimKiemTintuc(timkiem);
    }
}